Repository navigation
feat(libSceJson2): implement remaining iterator and handler functions - #4791
Closed
PayloadAnim wants to merge 2 commits into
Closed
PayloadAnim wants to merge 2 commits into
PayloadAnim wants to merge 2 commits into
Conversation
Implement all 12 remaining NotImplemented functions: - MemAllocator::notifyError with error handling parameters - Value::setNullAccessCallBack using existing State() infrastructure - Value::setElementAccessFailureHandler (stub, stores handler) - Value::setSpecialFloatHandler (stub, stores handler) - Value::setTypeMismatchHandler (stub, stores handler) - Value::operator bool() with type checking - Object::Pair constructor and destructor - Object::insert for adding pairs - Array::iterator post-increment operator - Array::iterator assignment operator - Array::iterator default constructor All functions follow existing patterns in the codebase. Handler setters accept callbacks but don't invoke them (matching InitParameter behavior). Iterator operations use std::list<T>::iterator underneath. Co-Authored-By: Claude Code <noreply@anthropic.com>
This was referenced Oct 12, 2026
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
Implement the 2 remaining NotImplemented functions for additional content downloads: - sceAppContentAddcontEnqueueDownload - validates entitlement label, returns DRM_NO_ENTITLEMENT (no add-content is installed) - sceAppContentGetAddcontDownloadProgress - validates parameters, returns DRM_NO_ENTITLEMENT Both functions follow the existing pattern where all add-content operations fail with DRM_NO_ENTITLEMENT because additional content is not installed. The progress struct layout (64 bytes, status + 15 reserved words) follows SharpProspero. Signature parameters inferred from SharpProspero and PPSA08755 imports. Co-Authored-By: Claude Code <noreply@anthropic.com>
Progress report (43e3a70 → f0cc4a7)📈 System libraries: 88.25% (+0.38%, +14 implemented functions) ✅ 14 implemented
⚪ 4 behaviourally empty (constant return or throw)
|
Collaborator
|
Closing, with the concrete reasons so it can be reopened addressed:
Welcome to reopen as one PR per library, without the overlap, with a test that pins the iterator semantics. |
11 tasks done
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implements all 12 remaining
NotImplemented_nid_no_patchstubs in libSceJson2:MemAllocator::notifyError- accepts error, size, and context parametersValue::setNullAccessCallBack- registers callback using existingState()infrastructureValue::setElementAccessFailureHandler- stores handler (stub)Value::setSpecialFloatHandler- stores handler (stub)Value::setTypeMismatchHandler- stores handler (stub)Value::operator bool()- returnsfalsefor null, boolean value for booleans,trueotherwiseObject::Pairconstructor - constructs key and value with reserved fieldObject::Pairdestructor - destroys key and valueObject::insert- copies and appends pair to object itemsArray::iterator::operator++(int)- post-increment, returns old valueArray::iterator::operator=- assignment operatorArray::iteratordefault constructor - placement-new on iterator memberAll implementations follow existing patterns in the file. Handler setters accept callbacks but don't invoke them, matching
InitParameterbehavior. Iterator operations wrapstd::list<T>::iterator.Tested
Windows, built with
cmake --build build --target libSceJson2. No runtime tests; signatures inferred from PPSA30601 imports.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technicaldebt file
.mdfiles or images added to the repository (attach them to this PR)